package sanshui.system.trade.db.entity;

import java.util.ArrayList;
import java.util.List;

public class TradeRiskConfExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TradeRiskConfExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRiskIdIsNull() {
            addCriterion("risk_id is null");
            return (Criteria) this;
        }

        public Criteria andRiskIdIsNotNull() {
            addCriterion("risk_id is not null");
            return (Criteria) this;
        }

        public Criteria andRiskIdEqualTo(Long value) {
            addCriterion("risk_id =", value, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdNotEqualTo(Long value) {
            addCriterion("risk_id <>", value, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdGreaterThan(Long value) {
            addCriterion("risk_id >", value, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdGreaterThanOrEqualTo(Long value) {
            addCriterion("risk_id >=", value, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdLessThan(Long value) {
            addCriterion("risk_id <", value, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdLessThanOrEqualTo(Long value) {
            addCriterion("risk_id <=", value, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdIn(List<Long> values) {
            addCriterion("risk_id in", values, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdNotIn(List<Long> values) {
            addCriterion("risk_id not in", values, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdBetween(Long value1, Long value2) {
            addCriterion("risk_id between", value1, value2, "riskId");
            return (Criteria) this;
        }

        public Criteria andRiskIdNotBetween(Long value1, Long value2) {
            addCriterion("risk_id not between", value1, value2, "riskId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdIsNull() {
            addCriterion("worker_id is null");
            return (Criteria) this;
        }

        public Criteria andWorkerIdIsNotNull() {
            addCriterion("worker_id is not null");
            return (Criteria) this;
        }

        public Criteria andWorkerIdEqualTo(Long value) {
            addCriterion("worker_id =", value, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdNotEqualTo(Long value) {
            addCriterion("worker_id <>", value, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdGreaterThan(Long value) {
            addCriterion("worker_id >", value, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdGreaterThanOrEqualTo(Long value) {
            addCriterion("worker_id >=", value, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdLessThan(Long value) {
            addCriterion("worker_id <", value, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdLessThanOrEqualTo(Long value) {
            addCriterion("worker_id <=", value, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdIn(List<Long> values) {
            addCriterion("worker_id in", values, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdNotIn(List<Long> values) {
            addCriterion("worker_id not in", values, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdBetween(Long value1, Long value2) {
            addCriterion("worker_id between", value1, value2, "workerId");
            return (Criteria) this;
        }

        public Criteria andWorkerIdNotBetween(Long value1, Long value2) {
            addCriterion("worker_id not between", value1, value2, "workerId");
            return (Criteria) this;
        }

        public Criteria andTargetCodeIsNull() {
            addCriterion("target_code is null");
            return (Criteria) this;
        }

        public Criteria andTargetCodeIsNotNull() {
            addCriterion("target_code is not null");
            return (Criteria) this;
        }

        public Criteria andTargetCodeEqualTo(String value) {
            addCriterion("target_code =", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeNotEqualTo(String value) {
            addCriterion("target_code <>", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeGreaterThan(String value) {
            addCriterion("target_code >", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeGreaterThanOrEqualTo(String value) {
            addCriterion("target_code >=", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeLessThan(String value) {
            addCriterion("target_code <", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeLessThanOrEqualTo(String value) {
            addCriterion("target_code <=", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeLike(String value) {
            addCriterion("target_code like", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeNotLike(String value) {
            addCriterion("target_code not like", value, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeIn(List<String> values) {
            addCriterion("target_code in", values, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeNotIn(List<String> values) {
            addCriterion("target_code not in", values, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeBetween(String value1, String value2) {
            addCriterion("target_code between", value1, value2, "targetCode");
            return (Criteria) this;
        }

        public Criteria andTargetCodeNotBetween(String value1, String value2) {
            addCriterion("target_code not between", value1, value2, "targetCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeIsNull() {
            addCriterion("conf_code is null");
            return (Criteria) this;
        }

        public Criteria andConfCodeIsNotNull() {
            addCriterion("conf_code is not null");
            return (Criteria) this;
        }

        public Criteria andConfCodeEqualTo(String value) {
            addCriterion("conf_code =", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeNotEqualTo(String value) {
            addCriterion("conf_code <>", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeGreaterThan(String value) {
            addCriterion("conf_code >", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeGreaterThanOrEqualTo(String value) {
            addCriterion("conf_code >=", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeLessThan(String value) {
            addCriterion("conf_code <", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeLessThanOrEqualTo(String value) {
            addCriterion("conf_code <=", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeLike(String value) {
            addCriterion("conf_code like", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeNotLike(String value) {
            addCriterion("conf_code not like", value, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeIn(List<String> values) {
            addCriterion("conf_code in", values, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeNotIn(List<String> values) {
            addCriterion("conf_code not in", values, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeBetween(String value1, String value2) {
            addCriterion("conf_code between", value1, value2, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfCodeNotBetween(String value1, String value2) {
            addCriterion("conf_code not between", value1, value2, "confCode");
            return (Criteria) this;
        }

        public Criteria andConfJsonIsNull() {
            addCriterion("conf_json is null");
            return (Criteria) this;
        }

        public Criteria andConfJsonIsNotNull() {
            addCriterion("conf_json is not null");
            return (Criteria) this;
        }

        public Criteria andConfJsonEqualTo(String value) {
            addCriterion("conf_json =", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonNotEqualTo(String value) {
            addCriterion("conf_json <>", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonGreaterThan(String value) {
            addCriterion("conf_json >", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonGreaterThanOrEqualTo(String value) {
            addCriterion("conf_json >=", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonLessThan(String value) {
            addCriterion("conf_json <", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonLessThanOrEqualTo(String value) {
            addCriterion("conf_json <=", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonLike(String value) {
            addCriterion("conf_json like", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonNotLike(String value) {
            addCriterion("conf_json not like", value, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonIn(List<String> values) {
            addCriterion("conf_json in", values, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonNotIn(List<String> values) {
            addCriterion("conf_json not in", values, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonBetween(String value1, String value2) {
            addCriterion("conf_json between", value1, value2, "confJson");
            return (Criteria) this;
        }

        public Criteria andConfJsonNotBetween(String value1, String value2) {
            addCriterion("conf_json not between", value1, value2, "confJson");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}